
package com.lzxr.test.exception;

import com.lzxr.test.utils.enums.UserEnum;

public class UserException extends RuntimeException {
    private UserEnum userEnum;

    public UserException(UserEnum userEnum) {
        super(userEnum.getMsg());
        this.userEnum = userEnum;
    }

    public UserEnum getUserEnum() {
        return this.userEnum;
    }
}
